/* 
 * File:   StepCounter.h
 * Author: root
 *
 * Created on October 30, 2015, 1:09 AM
 */

#ifndef STEPCOUNTER_H
#define	STEPCOUNTER_H

#include "pedometer.h"

class StepCounter {
public:
    StepCounter();
    StepCounter(const StepCounter& orig);
    virtual ~StepCounter();
    StepCounter* getInstance();
    int update(const StepData &paraStep);
    void set(uint32 a2);
    int get();
    
    int countGroup();
    void reset();
    void release();
    
    int stepCnt;
    int status;
//    int unknown;
    Buffer<StepData, 10> stepBuffer;

private:
    static StepCounter* instance;

};

#endif	/* STEPCOUNTER_H */

